package com.bkgy.modular.datacollect_bx.service;

import com.bkgy.modular.datacollect_bx.bean.JDataSave621;
import com.bkgy.modular.datacollect_bx.dao.JDataSaveDao621;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Log4j
public class JDataSaveService621 {

    @Autowired
    private JDataSaveDao621 jDataSaveDao621;

    public void insertData(JDataSave621 jDataSave){
        try {
            jDataSaveDao621.save(jDataSave);
            log.error("621写入mongdb完成");
        } catch (Exception e) {
            log.error("621写入mongdb错误");
            e.printStackTrace();
        }
    }

    public JDataSave621 findDataByExitId(String exitId){
        return jDataSaveDao621.findJDataSaveByExtid(exitId);
    }

}
